<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ftp.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ftp.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ftp.html">FTP</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ftp.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.ftp-ascii">
    <strong><code>FTP_ASCII</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para"/>
   </dd>

  
  
   <dt id="constant.ftp-autoseek">
    <strong><code>FTP_AUTOSEEK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     更多信息请参考 <span class="function"><a href="function.ftp-set-option.html" class="function">ftp_set_option()</a></span>。
    </p>
   </dd>

  
  
   <dt id="constant.ftp-autoresume">
    <strong><code>FTP_AUTORESUME</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     自动确定 GET 和 PUT 请求的恢复位置和开始位置（仅在启用 FTP_AUTOSEEK 的情况下有效）
    </p>
   </dd>

  
  
   <dt id="constant.ftp-failed">
    <strong><code>FTP_FAILED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     异步传输失败
    </p>
   </dd>

  
  
   <dt id="constant.ftp-finished">
    <strong><code>FTP_FINISHED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     异步传输完成
    </p>
   </dd>

  
  
   <dt id="constant.ftp-moredata">
    <strong><code>FTP_MOREDATA</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     异步传输正处于活动状态
    </p>
   </dd>

  
  
   <dt id="constant.ftp-text">
    <strong><code>FTP_TEXT</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para"><strong><code>FTP_ASCII</code></strong> 的别名。</p>
   </dd>

  
  
   <dt id="constant.ftp-binary">
    <strong><code>FTP_BINARY</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para"/>
   </dd>

  
  
   <dt id="constant.ftp-image">
    <strong><code>FTP_IMAGE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para"><strong><code>FTP_BINARY</code></strong> 的别名。</p>
   </dd>

  
  
   <dt id="constant.ftp-timeout-sec">
    <strong><code>FTP_TIMEOUT_SEC</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <p class="para">
     更多信息请参考 <span class="function"><a href="function.ftp-set-option.html" class="function">ftp_set_option()</a></span>。
    </p>
   </dd>

  
  
   <dt id="constant.ftp-usepasvaddress">
    <strong><code>FTP_USEPASVADDRESS</code></strong>
    (<span class="type">bool</span>)
   </dt>

   <dd>

    <p class="para">
     更多信息请参考 <span class="function"><a href="function.ftp-set-option.html" class="function">ftp_set_option()</a></span>。自
     PHP 5.6.0 版本起可用。
    </p>
   </dd>

  
 </dl>

</div>
</div></div></body></html>